package com.exmaple.lemlin;

import org.jivesoftware.smack.ConnectionListener;
import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.StanzaListener;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.chat2.Chat;
import org.jivesoftware.smack.chat2.IncomingChatMessageListener;
import org.jivesoftware.smack.chat2.OutgoingChatMessageListener;
import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.packet.Stanza;
import org.jivesoftware.smackx.ping.PingFailedListener;
import org.jxmpp.jid.EntityBareJid;

public class XMPPListener implements StanzaListener,
        IncomingChatMessageListener, OutgoingChatMessageListener, PingFailedListener {

    public static class XMPPConnectionListener implements ConnectionListener {

        @Override
        public void connected(XMPPConnection connection) {

        }

        @Override
        public void authenticated(XMPPConnection connection, boolean resumed) {

        }

        @Override
        public void connectionClosed() {

        }

        @Override
        public void connectionClosedOnError(Exception e) {

        }
    }

    @Override
    public void processStanza(Stanza packet) throws SmackException.NotConnectedException, InterruptedException, SmackException.NotLoggedInException {

    }

    @Override
    public void newIncomingMessage(EntityBareJid from, Message message, Chat chat) {

    }

    @Override
    public void newOutgoingMessage(EntityBareJid to, Message message, Chat chat) {

    }

    @Override
    public void pingFailed() {

    }
}
